textContent

public abstract String textContent()

Returns the text content of the current node and its descendants.

Throws

when this node is closed


public abstract void textContent(String textContent)

Removes all the current node children and replaces them with a single text node with the given textContent.

Parameters

textContent

the new text content of the current node

Throws

when this node is closed